package com.example.demo.pojo;

import org.springframework.stereotype.Component;

import javax.persistence.*;

/**
 * Created by Administrator on 2017/6/5.
 */
@Component
@Entity
public class Adminuser {
    private int aid;
    private int aage;
    private String aname;
    private String apassword;

    public String getApassword() {
        return apassword;
    }

    public void setApassword(String apassword) {
        this.apassword = apassword;
    }

    private int asex;
    private String img;

    public Adminuser() {
    }

    public Adminuser(int aid, int aage, String aname, int asex, String img) {
        this.aid = aid;
        this.aage = aage;
        this.aname = aname;
        this.asex = asex;
        this.img = img;
    }
    @GeneratedValue
    @Id
    public int getAid() {
        return aid;
    }

    public void setAid(int aid) {
        this.aid = aid;
    }

    public int getAage() {
        return aage;
    }

    public void setAage(int aage) {
        this.aage = aage;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public int getAsex() {
        return asex;
    }

    public void setAsex(int asex) {
        this.asex = asex;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

}
